<script lang="ts" setup name="lainshjo">
const aaa = ref("1");
aaa.value ||= "2";

import { useStore } from "@/store/index.js";
// const item = ref(null)
const store = useStore();
console.log("store: ", store);
// provide('cc', a)
onMounted(() => {
  console.log("创建元素");
});
onActivated(() => {
  console.log("缓存");
});
</script>

<template>
  <div>
    <a :href="`www.baicu.com/${aaa}`"></a>
    <div>{{ store.count }}</div>
    <el-button type="primary" @click="store.countAdd()">123</el-button>
  </div>
</template>

<style lang="scss" scoped></style>
